/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmDiagnosa.java
 *
 * Created on Jan 24, 2012, 11:13:14 AM
 */
package SIMRS.Radiologi.view;

import usu.widget.Form;

/**
 *
 * @author H@ruM
 */
public class frmPemesananBarangRuangan extends Form {

    /** Creates new form frmDiagnosa */
    public frmPemesananBarangRuangan() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        label3 = new SIMRS.Radiologi.widget.Label();
        jScrollBar1 = new javax.swing.JScrollBar();
        pnlHead1 = new SIMRS.Radiologi.widget.PnlHead();
        label4 = new SIMRS.Radiologi.widget.Label();
        jLabel1 = new javax.swing.JLabel();
        pnlForm1 = new SIMRS.Radiologi.widget.PnlForm();
        btnSimpan = new SIMRS.Radiologi.widget.button2();
        btnBatal = new SIMRS.Radiologi.widget.button2();
        btnKeluar = new SIMRS.Radiologi.widget.button2();
        scrollPane1 = new SIMRS.Radiologi.widget.ScrollPane();
        tblFormPemesananBarang = new SIMRS.Radiologi.widget.Table();
        jPanel1 = new javax.swing.JPanel();
        label7 = new SIMRS.Radiologi.widget.Label();
        jDateChooser1 = new com.toedter.calendar.JDateChooser();
        label5 = new SIMRS.Radiologi.widget.Label();
        txtNamaBarang = new SIMRS.Radiologi.widget.TextBox();
        txtJumlah = new SIMRS.Radiologi.widget.TextBox();
        label9 = new SIMRS.Radiologi.widget.Label();
        cmbNamaRuangan = new javax.swing.JComboBox();
        label10 = new SIMRS.Radiologi.widget.Label();
        label6 = new SIMRS.Radiologi.widget.Label();
        cmbRuanganTujuan = new javax.swing.JComboBox();
        btnTambah = new SIMRS.Radiologi.widget.button2();
        btnHapus = new SIMRS.Radiologi.widget.button2();

        label3.setText("label3");

        setTitle("Form Pemesanan Barang Ruangan");
        setAnimationHide(usu.widget.constan.Animation.SHOW_FROM_TOP);
        setResizable(false);
        setUndecorated(true);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        pnlHead1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        label4.setForeground(new java.awt.Color(255, 255, 255));
        label4.setText("Form Pemesanan Barang Ruangan");
        label4.setFont(new java.awt.Font("HGHeiseiKakugothictaiW9", 1, 24));
        pnlHead1.add(label4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 40, -1, -1));

        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Data Pemesanan Barang Ruangan");
        pnlHead1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 80, -1, -1));

        getContentPane().add(pnlHead1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 600, 130));

        pnlForm1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        btnSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Radiologi/gambar/bt_simpan.png"))); // NOI18N
        btnSimpan.setText("Simpan");
        pnlForm1.add(btnSimpan, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 330, -1, -1));

        btnBatal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Radiologi/gambar/bt_hapus.png"))); // NOI18N
        btnBatal.setText("Batal");
        pnlForm1.add(btnBatal, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 330, -1, -1));

        btnKeluar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Radiologi/gambar/bt_close.png"))); // NOI18N
        btnKeluar.setText("Keluar");
        btnKeluar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnKeluarActionPerformed(evt);
            }
        });
        pnlForm1.add(btnKeluar, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 330, -1, -1));

        tblFormPemesananBarang.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        scrollPane1.setViewportView(tblFormPemesananBarang);

        pnlForm1.add(scrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 520, 110));

        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.setOpaque(false);
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        label7.setText("Tanggal Order      ");
        jPanel1.add(label7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));
        jPanel1.add(jDateChooser1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 20, 130, -1));

        label5.setText("Nama Barang         ");
        jPanel1.add(label5, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 50, -1, -1));
        jPanel1.add(txtNamaBarang, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 50, 160, -1));

        txtJumlah.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtJumlahActionPerformed(evt);
            }
        });
        jPanel1.add(txtJumlah, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 80, 160, -1));

        label9.setText("Jumlah                    ");
        jPanel1.add(label9, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 80, -1, 20));

        jPanel1.add(cmbNamaRuangan, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 50, 130, -1));

        label10.setText("Nama Ruangan    ");
        jPanel1.add(label10, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, -1, -1));

        label6.setText("Ruangan Tujuan  ");
        jPanel1.add(label6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1));

        jPanel1.add(cmbRuanganTujuan, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 80, 130, -1));

        btnTambah.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Radiologi/gambar/bt_tambah.png"))); // NOI18N
        btnTambah.setText("Tambah");
        jPanel1.add(btnTambah, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 120, -1, -1));

        btnHapus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Radiologi/gambar/bt_hapus.png"))); // NOI18N
        btnHapus.setText("Hapus");
        jPanel1.add(btnHapus, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 120, -1, -1));

        pnlForm1.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, 520, 170));

        getContentPane().add(pnlForm1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 140, 580, 380));

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-586)/2, (screenSize.height-526)/2, 586, 526);
    }// </editor-fold>//GEN-END:initComponents

    private void txtJumlahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtJumlahActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtJumlahActionPerformed

private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
System.exit(1);
    // TODO add your handling code here:
}//GEN-LAST:event_formWindowClosing

private void btnKeluarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnKeluarActionPerformed
dispose();
}//GEN-LAST:event_btnKeluarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private SIMRS.Radiologi.widget.button2 btnBatal;
    private SIMRS.Radiologi.widget.button2 btnHapus;
    private SIMRS.Radiologi.widget.button2 btnKeluar;
    private SIMRS.Radiologi.widget.button2 btnSimpan;
    private SIMRS.Radiologi.widget.button2 btnTambah;
    private javax.swing.JComboBox cmbNamaRuangan;
    private javax.swing.JComboBox cmbRuanganTujuan;
    private com.toedter.calendar.JDateChooser jDateChooser1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollBar jScrollBar1;
    private SIMRS.Radiologi.widget.Label label10;
    private SIMRS.Radiologi.widget.Label label3;
    private SIMRS.Radiologi.widget.Label label4;
    private SIMRS.Radiologi.widget.Label label5;
    private SIMRS.Radiologi.widget.Label label6;
    private SIMRS.Radiologi.widget.Label label7;
    private SIMRS.Radiologi.widget.Label label9;
    private SIMRS.Radiologi.widget.PnlForm pnlForm1;
    private SIMRS.Radiologi.widget.PnlHead pnlHead1;
    private SIMRS.Radiologi.widget.ScrollPane scrollPane1;
    private SIMRS.Radiologi.widget.Table tblFormPemesananBarang;
    private SIMRS.Radiologi.widget.TextBox txtJumlah;
    private SIMRS.Radiologi.widget.TextBox txtNamaBarang;
    // End of variables declaration//GEN-END:variables
}
